﻿@model BskLeague.Models.News

@{
    ViewBag.Title = "Wiadomość :: Edycja";
}

<h2>Edytuj wiadomość</h2>

<form action="../Update" method="post">
    <input type="hidden" id="newsId" name="newsId" value="@Model.newsId" />
    <table width="100%">
        <tr>
            <th>Tytuł:<br />@Html.TextBox("newsTitle", @Model.newsTitle, new { @style = "width: 300px;" })</th>
            <th>Kategoria:<br />@Html.DropDownList("newsCategory", (IEnumerable<SelectListItem>)ViewBag.categories)</th>
            <th>@Model.newsDate</th>
        </tr>
        <tr>
            <td colspan="3">Treść:<br />@Html.TextArea("newsContent", @Model.newsContent, new { @style = "width: 100%" })</td>
        </tr>
        <tr>
            <td><input type="submit" value="Zapisz" />&nbsp;@Html.ActionLink("Anuluj", "Details", new { id = @Model.newsId })</td>
        </tr>
    </table>
</form>